<!DOCTYPE html>
<html>
<head>
<#include "/common/head.html"/>
</head>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-body">
						<form class="layui-form layui-row layui-col-space16">
							<div class="layui-col-md2">
								<div class="layui-input-wrap">
									<div class="layui-input-prefix">
										<i class="layui-icon layui-icon-username"></i>
									</div>
									<input type="text" name="remark" placeholder="请输入名称"
										class="layui-input" lay-affix="clear" value="${ao.remark}">
								</div>
							</div>
							<div class="layui-col-md2">
								<div class="layui-input-wrap">
									<div class="layui-input-prefix">
										<i class="layui-icon layui-icon-username"></i>
									</div>
									<input type="text" name="code" placeholder="请输入编码"
										class="layui-input" lay-affix="clear" value="${ao.code}">
								</div>
							</div>
							<div class="layui-col-md2 layui-btn-group">
								<button class="layui-btn" lay-filter="search" lay-submit>
									<i class="layui-icon layui-icon-search"></i> 搜索
								</button>
								<button type="reset" class="layui-btn layui-btn-primary">
									<i class="layui-icon layui-icon-clear"></i> 清除
								</button>
							</div>

							<input type="hidden" id="pageIndex" name="pageIndex"
								value="${ao.pageIndex?c}" /> 
							<input type="hidden" id="pageSize"
								name="pageSize" value="${ao.pageSize?c}" />

						</form>
					</div>

					<div class="layui-card-body layui-table-body layui-table-main">
						<table class="layui-table layui-form">
							<thead>
								<tr>
									<th>
										<input type="checkbox" title="编号" lay-filter="checkall" lay-skin="none">
									</th>
									<th>内容</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<#list vo.data as value>
								<tr>
									<td>
										<input type="checkbox" name="id" value="${value.id?c}" title="${value.code}" lay-skin="none"> 
									</td>
									<td>
										<pre class="layui-code code-demo" lay-options="{theme: 'dark'}">${value.value}</pre>
										<span class="layui-badge layui-bg-red">${value.remark}</span>
										<span class="layui-badge layui-bg-blue">${value.type}</span>
									</td>
									<td>
										<button class="layui-btn layui-bg-orange layui-btn-sm"
											onclick="xadmin.open('编辑','/v1/common/edit/system/configure/edit?id=${value.id?c}')">
											<i class="layui-icon layui-icon-edit"></i> 编辑
										</button>
									</td>
								</tr>
								</#list>
							</tbody>
						</table>
						<#include "/common/page.html"/>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script>
		layui.use(function() {
			layui.code({
				elem : '.code-demo'
			});
		})
	</script>
</body>
</html>